<!--pages/test/test.wxml-->
<block wx:for="{{ad}}" wx:key="index">
  <view wx:if="{{item.type == 'banner'}}" class="title">Banner 广告</view>
  <view wx:if="{{item.type == 'jili'}}" class="title">激励广告</view>
  <view wx:if="{{item.type == 'chaping'}}" class="title">插屏广告</view>
  <view wx:if="{{item.type == 'video'}}" class="title">视频广告</view>
  <view wx:if="{{item.type == 'shipintiepian'}}" class="title">视频贴片广告</view>
  <view wx:if="{{item.type == 'gezi'}}" class="title">格子广告</view>
  <ad wx:if="{{item.type == 'banner'}}" unit-id="{{item.id}}"></ad>
  <ad wx:if="{{item.type == 'video'}}" unit-id="{{item.id}}"></ad>
  <ad wx:if="{{item.type == 'shipintiepian'}}" unit-id="{{item.id}}"></ad>
  <ad wx:if="{{item.type == 'gezi'}}" unit-id="{{item.id}}" ad-type="grid" grid-opacity="0.8" grid-count="5" ad-theme="white"></ad>
  <view wx:if="{{item.type == 'jili'}}" bindtap="openJili" class="button">点击弹出激励广告</view>
  <view wx:if="{{item.type == 'chaping'}}" bindtap="openChaping"  class="button">点击弹出插屏广告 {{timeDown>0?timeDown+'s后可点击':''}}</view>
</block>
